package com.ghck.server.model;

import java.util.Date;
/**
 * 就诊记录  <br>
 * t_treatment <br>
 * v1.0 2016-05-01
 */
 public class Treatment extends BaseModel implements Comparable<Treatment>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//用户ID，t_users 表ID
 	//user_id
	private Integer userId;

 	//就诊医院
 	//hospital_name
	private String hospitalName;

 	//病因
 	//pathogen
	private String pathogen;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	//就诊时间
 	//action_time
	private Date actionTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*用户ID，t_users 表ID
 	*user_id
 	*/
	public Integer getUserId() {
		return userId;
	}
	
	/**
	*用户ID，t_users 表ID
 	*user_id
 	*/
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	/**
	*就诊医院
 	*hospital_name
 	*/
	public String getHospitalName() {
		return hospitalName;
	}
	
	/**
	*就诊医院
 	*hospital_name
 	*/
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}
	
	/**
	*病因
 	*pathogen
 	*/
	public String getPathogen() {
		return pathogen;
	}
	
	/**
	*病因
 	*pathogen
 	*/
	public void setPathogen(String pathogen) {
		this.pathogen = pathogen;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*就诊时间
 	*action_time
 	*/
	public Date getActionTime() {
		return actionTime;
	}
	
	/**
	*就诊时间
 	*action_time
 	*/
	public void setActionTime(Date actionTime) {
		this.actionTime = actionTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}

	@Override
	public int compareTo(Treatment o) {
		if(o!=null && o.getId()!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
}	